﻿using Kernel;

namespace testca
{
    class Program
    {
        [ABI.ExtraArgument(0, 0x18)]
        static void Main()
        {
            Multiboot.Header mboot = ABI.CastOperations.ReinterpretAsMboot(ABI.CastOperations.GetArg0U8());

            // Grab a page to use in setting up the physical memory allocator
            ulong pmem_temp_page = mboot.heap_start;
            // Set up a temporary heap
            MemoryAllocator.DefineHeap(mboot.heap_start + 0x1000, mboot.heap_end);

            // Do vga stuff
            Vga vga = new Vga(mboot.virt_bda);
            vga.PutString("Tysos v0.2.0");
        }
    }
}
